<?php
namespace Swiftx\Interfaces\Router;
use \ReflectionClass;

/**
 * 路由注解解析器
 * @package Swiftx\Interfaces\Router
 */
interface Annotation {

    /**
     * 设置待解析的类
     * @param ReflectionClass $class
     * @return mixed
     */
    public function setReflection(ReflectionClass $class);

    /**
     * 解析注解路由
     * @param Collection $collection
     * @param string[] $evn
     */
    public function parser(Collection $collection, array $evn = []);

}